import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '../src/css/public.css'
import './api'
import './styles.scss'
import ElementUI from 'element-ui'
import store from './store/index'

Vue.config.productionTip = false

Vue.use(ElementUI)

Vue.mixin({
  computed: {
    uploadUrl() {
      return 'http://127.0.0.1:3000' + '/upload'
    }
  },
  methods: {
    getAuthHeader() {
      return {
        Authorization: `Bearer ${localStorage.token || ''}`
      }
    }
  }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
